\hypertarget{class_userlib}{\section{Userlib Class Reference}
\label{class_userlib}\index{Userlib@{Userlib}}
}
Inheritance diagram for Userlib\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_userlib}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_userlib_a9374230d064eb6a6a3a1b092b9b07c8b}{Userlib} ()
\item 
\hyperlink{class_userlib_a30dd7fff4fec7a39f9be9d27d4b22a59}{get\-I\-D} ()
\item 
\hyperlink{class_userlib_a9927bd44e0bb62deb12c924275fcdcb0}{register} (\$username, \$password, \$email, \$status=1, \$emailcheck=T\-R\-U\-E, \$ipcheck=T\-R\-U\-E)
\item 
\hyperlink{class_userlib_ad870c94a5775868891f6c50b9818d627}{login} (\$username, \$password)
\item 
\hyperlink{class_userlib_ad488b2fc379939d02890e0dc0533d1a4}{logged\-\_\-in} ()
\item 
\hyperlink{class_userlib_a86353e4d08552c7a07ae670c2a6a4179}{forgot} (\$email, \$length)
\item 
\hyperlink{class_userlib_a1847736dfa1cc5736552065ebeef99f8}{get\-Data} (\$username, \$what)
\item 
\hyperlink{class_userlib_a3b2c59663a8deebc4ee943ac671fe76b}{get\-Age} (\$day, \$month, \$year)
\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{class_userlib_a86353e4d08552c7a07ae670c2a6a4179}{\index{Userlib@{Userlib}!forgot@{forgot}}
\index{forgot@{forgot}!Userlib@{Userlib}}
\subsubsection[{forgot}]{\setlength{\rightskip}{0pt plus 5cm}{\bf forgot} (
\begin{DoxyParamCaption}
\item[{\$}]{email, }
\item[{\$}]{length}
\end{DoxyParamCaption}
)}}\label{class_userlib_a86353e4d08552c7a07ae670c2a6a4179}
Forgot Username or Password

public 
\begin{DoxyParams}{Parameters}
{\em string} & the email \\
\hline
{\em integer} & length of new password \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
boolean if the email was found and email was sent 
\end{DoxyReturn}
For strict servers \mbox{[}Home Servers?\mbox{]}\hypertarget{class_userlib_a3b2c59663a8deebc4ee943ac671fe76b}{\index{Userlib@{Userlib}!get\-Age@{get\-Age}}
\index{get\-Age@{get\-Age}!Userlib@{Userlib}}
\subsubsection[{get\-Age}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-Age} (
\begin{DoxyParamCaption}
\item[{\$}]{day, }
\item[{\$}]{month, }
\item[{\$}]{year}
\end{DoxyParamCaption}
)}}\label{class_userlib_a3b2c59663a8deebc4ee943ac671fe76b}
Get Age

public 
\begin{DoxyParams}{Parameters}
{\em string} & birth-\/day \\
\hline
{\em string} & birth-\/month \\
\hline
{\em string} & birth-\/year \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
integer how many years 
\end{DoxyReturn}
\hypertarget{class_userlib_a1847736dfa1cc5736552065ebeef99f8}{\index{Userlib@{Userlib}!get\-Data@{get\-Data}}
\index{get\-Data@{get\-Data}!Userlib@{Userlib}}
\subsubsection[{get\-Data}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-Data} (
\begin{DoxyParamCaption}
\item[{\$}]{username, }
\item[{\$}]{what}
\end{DoxyParamCaption}
)}}\label{class_userlib_a1847736dfa1cc5736552065ebeef99f8}
Get Data

public 
\begin{DoxyParams}{Parameters}
{\em string} & the username \\
\hline
{\em string} & what row to grab \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string the data 
\end{DoxyReturn}
\hypertarget{class_userlib_a30dd7fff4fec7a39f9be9d27d4b22a59}{\index{Userlib@{Userlib}!get\-I\-D@{get\-I\-D}}
\index{get\-I\-D@{get\-I\-D}!Userlib@{Userlib}}
\subsubsection[{get\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-I\-D} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_userlib_a30dd7fff4fec7a39f9be9d27d4b22a59}
\hypertarget{class_userlib_ad488b2fc379939d02890e0dc0533d1a4}{\index{Userlib@{Userlib}!logged\-\_\-in@{logged\-\_\-in}}
\index{logged\-\_\-in@{logged\-\_\-in}!Userlib@{Userlib}}
\subsubsection[{logged\-\_\-in}]{\setlength{\rightskip}{0pt plus 5cm}{\bf logged\-\_\-in} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_userlib_ad488b2fc379939d02890e0dc0533d1a4}
Logged in

public \begin{DoxyReturn}{Returns}
boolean if the user is logged in or not 
\end{DoxyReturn}
\hypertarget{class_userlib_ad870c94a5775868891f6c50b9818d627}{\index{Userlib@{Userlib}!login@{login}}
\index{login@{login}!Userlib@{Userlib}}
\subsubsection[{login}]{\setlength{\rightskip}{0pt plus 5cm}{\bf login} (
\begin{DoxyParamCaption}
\item[{\$}]{username, }
\item[{\$}]{password}
\end{DoxyParamCaption}
)}}\label{class_userlib_ad870c94a5775868891f6c50b9818d627}
Login \hyperlink{class_user}{User}

public 
\begin{DoxyParams}{Parameters}
{\em string} & the username \\
\hline
{\em string} & the password \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
boolean if the user was logged in or not 
\end{DoxyReturn}
\hypertarget{class_userlib_a9927bd44e0bb62deb12c924275fcdcb0}{\index{Userlib@{Userlib}!register@{register}}
\index{register@{register}!Userlib@{Userlib}}
\subsubsection[{register}]{\setlength{\rightskip}{0pt plus 5cm}{\bf register} (
\begin{DoxyParamCaption}
\item[{\$}]{username, }
\item[{\$}]{password, }
\item[{\$}]{email, }
\item[{\$}]{status = {\ttfamily 1}, }
\item[{\$}]{emailcheck = {\ttfamily TRUE}, }
\item[{\$}]{ipcheck = {\ttfamily TRUE}}
\end{DoxyParamCaption}
)}}\label{class_userlib_a9927bd44e0bb62deb12c924275fcdcb0}
Register \hyperlink{class_user}{User}

public 
\begin{DoxyParams}{Parameters}
{\em string} & the username \\
\hline
{\em string} & the password \\
\hline
{\em string} & the email \\
\hline
{\em string} & the ip \\
\hline
{\em integer} & the status \\
\hline
{\em boolean} & check for email \\
\hline
{\em boolean} & check for I\-P \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string if the user was created, if not returns errors in Unordered List 
\end{DoxyReturn}
\hypertarget{class_userlib_a9374230d064eb6a6a3a1b092b9b07c8b}{\index{Userlib@{Userlib}!Userlib@{Userlib}}
\index{Userlib@{Userlib}!Userlib@{Userlib}}
\subsubsection[{Userlib}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Userlib} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_userlib_a9374230d064eb6a6a3a1b092b9b07c8b}
Constructor

Get instance for Database Lib

public 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
/\-Applications/\-M\-A\-M\-P/htdocs/\-Workspace/blp2.\-0/application/libraries/\hyperlink{_userlib_8php}{Userlib.\-php}\end{DoxyCompactItemize}
